
/**
 * [isBrowser 判断是否为浏览器环境]
 * @type {Boolean}
 */
export const isBrowser = typeof window !== 'undefined' && Object.prototype.toString.call(window) !== '[object Object]'

const userAgent = isBrowser && window.navigator.userAgent
export const isIE9 = userAgent && userAgent.indexOf('msie 9.0') > 0
export const isIOS = userAgent && /iphone|ipad|ipod/i.test(userAgent)
export const isAndroid = userAgent && userAgent.indexOf('android') > 0
